FROM tiangolo/uwsgi-nginx:python3.7
COPY requirements.txt /requirements.txt
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY sources.list /etc/apt/sources.list
RUN  echo 'nameserver 114.114.114.114'>/etc/resolv.conf && apt-get update && apt-get install ca-certificates -y && ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone && pip3 install -r /requirements.txt -i http://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com && rm -rf /etc/uwsgi/uwsgi.ini
COPY uwsgi.ini /etc/uwsgi/
